﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Steve
{
    [Serializable]
    [DataContract]
    public sealed class SearchResult
    {
        [DataMember]
        public int TotalCount { get; set; }
        [DataMember]
        public int ItemCount { get; set; }
        [DataMember]
        public IEnumerable<SearchResultItem> Items { get; set; }
        [DataMember]
        public float MaxScore { get; set; }
    }

    [Serializable]
    [DataContract]
    public sealed class SearchResultItem
    {
        [DataMember]
        public float RawScore { get; set; }
        [DataMember]
        public float NormalizedScore { get; set; }
        [DataMember]
        public string Title { get; set; }
        [DataMember]
        public string Teaser { get; set; }
        [DataMember]
        public string ContentTypeName { get; set; }
        [DataMember]
        public Guid ContentId { get; set; }
        [DataMember]
        public int RevisionNumber { get; set; }
        [DataMember]
        public Uri Url { get; set; }
    }
}
